<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <link href="/public/css/bootstrap.min.css" rel="stylesheet">
</head>


<body>

  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="sub-header">修改用户信息</h2>
        <form action="/edit" method="post">
          <input type="hidden" name="id" value="{{ user.id }}">
          <div class="form-group">
            <label >姓名</label>
            <input type="text" class="form-control"  name="name" value="{{ user.name }}" required >
          </div>
          <div class="form-group">
            <label >昵称</label>
            <input type="text" class="form-control"  name="nickName" value="{{ user.nickName }}" required >
          </div>
          <div class="form-group">
            <label >电话</label>
            <input class="form-control" type="number"  name="phone" value="{{ user.phone }}" required >
          </div>
          <div class="form-group">
            <label >密码</label>
            <input type="text" class="form-control"  name="password" value="{{ user.password }}" required>
          </div>
          <div class="form-group">
            <label >楼栋</label>
            <input type="text" class="form-control"  name="loudong" value="{{ user.loudong}}" required >
          </div>
          <div class="form-group">
            <label >门牌</label>
            <input type="text" class="form-control"  name="menpai" value="{{ user.menpai }}" required >
          </div>
          <button type="submit" class="btn btn-default">修改</button>
        </form>
      </div>
    </div>
  </div>
</body>

</html>
